﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="HealthArchivesSrhForm.aspx.cs" Inherits="App_Search_HealthArchivesSrhForm"
    Title="健康档案查询" %>

<%@ Import Namespace="Shpm.App.Search.Bean" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">   
<script type="text/javascript">

</script> 
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left">
                            <script language="javascript">
                                (new TitleBar('HealthArchivesSrh', '检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background-color: #ffffff">
                    <!--<tr>
                        <td align="left" colspan="6" class="list_title_blue_bg">&nbsp;查询条件</td>
                    </tr>-->
                    <tr>
                        <td style="width: 5px; height: 24px;"></td>
                        <td align="left" style="width: 20%; white-space: nowrap; height: 24px;">会员编号：</td>
                        <td align="left" style="width: 20%; height: 24px">&nbsp;<asp:TextBox ID="txtMemId"
                            runat="server" Width="92px" MaxLength="12"></asp:TextBox></td>
                        <td align="left" style="width: 15%; height: 24px">性别：</td>
                        <td align="left" style="width: 25%; height: 24px">&nbsp;<asp:DropDownList ID="lstSex"
                            runat="server">
                        </asp:DropDownList></td>
                        <td align="right"></td>
                    </tr>
                    <tr>
                        <td style="width: 12px; height: 24px"></td>
                        <td align="left" style="width: 120px; white-space: nowrap; height: 24px">姓名：</td>
                        <td align="left" style="height: 24px">&nbsp;<asp:TextBox ID="txtName" runat="server"
                            Width="92px" MaxLength="12"></asp:TextBox></td>
                        <td align="left" style="height: 26px">疾病：</td>
                        <td align="left" style="height: 26px">&nbsp;<asp:TextBox ID="txtDisease" runat="server"
                            Width="214px" MaxLength="100"></asp:TextBox></td>
                        <td align="right" style="height: 26px"></td>
                    </tr>
                    <tr>
                        <td style="height: 20px" colspan="6"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
                <asp:Button ID="btnSearch" runat="server" CssClass="button" Text=" 检  索 " OnClick="btnSearch_Click" /></td>
        </tr>
    </table>
    <br />
    <div id="tableResult">
        <table width="100%">
            <tr>
                <td align="left">
                    <script language="javascript">
                        (new TitleBar('SearchBar', '检索结果--会员列表')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BorderStyle="Solid" BorderWidth="3px" CssClass="GridView_table" DataKeyNames="MemberNo"
                        EnableViewState="true" OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowCommand="viewSrhRst_RowCommand"
                        OnRowDataBound="viewSrhRst_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="MemberNo" HeaderText="会员编号">
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="15%" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MemberName" HeaderText="姓名">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MemberSex" HeaderText="性别">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Age" HeaderText="年龄">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MemberTel" HeaderText="联系电话">
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="15%" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ApartmentNo" HeaderText="房间编号">
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="健康档案" ShowHeader="False">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="VISIT"
                                        OnCommand="LinkButton_Command" CommandArgument="<%# ((HealthArchivesBean)Container.DataItem).MemberNo %>"
                                        Text=" 家访记录 "></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" CommandName="CURE"
                                        OnCommand="LinkButton_Command" CommandArgument="<%# ((HealthArchivesBean)Container.DataItem).MemberNo %>"
                                        Text=" 治疗记录 "></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="false" CommandName="MEDICINE"
                                        OnCommand="LinkButton_Command" CommandArgument="<%# ((HealthArchivesBean)Container.DataItem).MemberNo %>"
                                        Text=" 用药记录 "></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton4" runat="server" CausesValidation="false" CommandName="REPORT"
                                        OnCommand="LinkButton_Command" CommandArgument="<%# ((HealthArchivesBean)Container.DataItem).MemberNo %>"
                                        Text=" 体检报告 "></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton5" runat="server" CausesValidation="false" CommandName="BRIEF"
                                        OnCommand="LinkButton_Command" CommandArgument="<%# ((HealthArchivesBean)Container.DataItem).MemberNo %>"
                                        Text=" 健康状况 "></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
